﻿#region Copyright and License
/*==============================================================================
 *  Copyright (c) cndotnet.org Corporation.  All rights reserved.
 * ===============================================================================
 * This code and information is provided "as is" without warranty of any kind,
 * either expressed or implied, including but not limited to the implied warranties
 * of merchantability and fitness for a particular purpose.
 * ===============================================================================
 * Licensed under the GNU General Public License (GPL) v2
 * http://www.cndotnet.org/ucenter
 * ==============================================================================*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace UCenter.ContactFromLiveID
{
    /// <summary>
    /// 
    /// </summary>
    [XmlNodeMapping(XmlNodeName = "Emails/Email")]
    [DataContract]
    public class Email
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [XmlNodeMapping(XmlNodeName = "ID")]
        [DataMember]
        public string ID { get; set; }

        /// <summary>
        /// Gets or sets the type of the email.
        /// </summary>
        /// <value>The type of the email.</value>
        [XmlNodeMapping(XmlNodeName = "EmailType")]
        [DataMember]
        public string EmailType { get; set; }

        /// <summary>
        /// Gets or sets the address.
        /// </summary>
        /// <value>The address.</value>
        [XmlNodeMapping(XmlNodeName = "Address")]
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is IM enabled.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is IM enabled; otherwise, <c>false</c>.
        /// </value>
        [XmlNodeMapping(XmlNodeName = "IsIMEnabled")]
        [DataMember]
        public bool IsIMEnabled { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is default.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is default; otherwise, <c>false</c>.
        /// </value>
        [XmlNodeMapping(XmlNodeName = "IsDefault")]
        [DataMember]
        public bool IsDefault { get; set; }
    }
}
